Release 10.1A: OpenEdge Development:
Progress Dynamics Basic Development


Creating and modifying template objects

Always create your own template and palette objects. Do not modify the default template or palette objects. Any changes you make to the default objects might be overwritten by changes Progress makes in future releases.

To create a template object with the ROM to add a custom object to the New dialog box:

  1. Create a static SmartDataViewer template.
  2. Save it as mySmartViewer.w in the adm2/custom directory and register it in the Repository.
  3. Open the ROM and type template in the Object Type field.
  4. Expand the tree view to show the contents of the Template Objects node.
  5. Create a new Object using the following values:
  6. Field
    Value
    Product
    MyProduct
    Product module
    MyProductModule
    Object type code
    SmartViewer
    Object filename
    myCustomObjects
    Layout
    None (00)
    Template SmartObject toggle box
    Selected

  7. Expand the MyCustomObject node, as shown:
  8. Create a new Object Instance named mySmartViewer. Specify the Object Type as SmartDataViewer and Object Filename as myCustomObjects.
  9. Add the following attributes for mySmartViewer:
    • TemplateFileadm2/custom/mySmartViewer.w
    • TemplateGroup — SmartObject
    • TemplateLabel — My&CustomSmartViewer
    • TemplateOrder — 7
  10. (IMPORTANT) Add the new object (MyCustomObjects) to the list of objects defined in your icfconfig file for the tag IDETEMPLATES in a comma-delimited format. Alternatively, you can go to the user preferences by selecting the menu option File Preferences, and then enter the new template object as a comma-delimited list in the Custom Templates field (for example, *,MyCustomObjects).
  11. Choose Menu Use Custom from the Object Palette’s menu. The Use Custom dialog box appears. The buttons on the dialog box are disabled when you are working from the Repository and enabled when you are working from the static .cst files.
  12. Choose OK to reload the information from the Repository.
  13. Choose the New icon on the AppBuilder main window. The MyCustomSmartViewer object is available when the New dialog box appears.

Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095